#ifndef __SYSTEM_H__
#define __SYSTEM_H__

#include <STM32F10x.h>
#include "Bluetooch.h"
#include "delay.h"
#include "printf.h"
#include "pwm.h"
#include "oled.h"
#include "dht11.h" 
#include "Key.h"
#include "FLash.h"
#include "ESP01.h"
#include "ds1302.h"
#include "timer.h"
#include "led.h"


struct alarm_time
{
    int8_t hour;
    int8_t minute;
};
#define ALARM_ON 1
#define ALARM_OFF 0
typedef struct alarm_time Alarm_Time;



void System_Init(void);
void dht11_get_dat(void);
int Check_Wifi(void);


void bt_parse_data( char *data);
void esp_parse_data(char *data);

void widget_0(void);
void widget_1(void);
void widget_2(void);
void widget_3(void);
void widget_4(void);
void widget_show(int8_t index);

#endif
